package com.aspose.cells.a.d;

public class zan {
   public static int a(int var0, int var1) {
      int var2 = 1;
      if (var0 < 0) {
         var0 = -var0;
         var2 = -1;
      }

      if (var1 < 0) {
         var1 = -var1;
         var2 = -var2;
      }

      int var3 = (int)((long)var0 * (long)var1 + 32768L >> 16);
      return var2 > 0 ? var3 : -var3;
   }

   public static int b(int var0, int var1) {
      int var2 = 1;
      if (var0 < 0) {
         var0 = -var0;
         var2 = -1;
      }

      if (var1 < 0) {
         var1 = -var1;
         var2 = -var2;
      }

      long var3;
      if (var1 == 0) {
         var3 = 2147483647L;
      } else {
         var3 = (((long)var0 << 16) + (long)(var1 >> 1)) / (long)var1;
      }

      return var2 < 0 ? -((int)(var3 & 4294967295L)) : (int)(var3 & 4294967295L);
   }

   public static int a(int var0) {
      return var0 & -64;
   }

   public static int b(int var0) {
      return var0 + 32 & -64;
   }

   public static int c(int var0) {
      return var0 + 63 & -64;
   }
}
